home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3instnc.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.2 KB  |  114 lines

  1.  
  2. // JavaScript wrapper for r3instnc.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_INSTANCE_H = 1;
  7. include("real/objects/r3level.js")
  8.  
  9.  
  10. var R3CLID_INSTANCE = 132;
  11.  
  12.  
  13.  
  14.  
  15. // Description: See if the source object is of type
  16. // Returns: Boolean, true if the class of the object matches the given class
  17. // p3: Integer, class id to be checked    
  18.  
  19. R3INSTANCEM_SOURCEISOFKIND = 132001;
  20.  
  21. function mR3INSTANCEM_SOURCEISOFKIND(p3) {
  22.   return   DoA(this.r3obj, 132001, p3, R3TID_INTEGER, 0);
  23. }
  24.  
  25. // Description: Attach the link object to the given source object.
  26. // Returns: Boolean, true if succeeded.
  27. // p3: Object, new source object.    
  28.  
  29. R3INSTANCEM_ATTACH = 132002;
  30.  
  31. function mR3INSTANCEM_ATTACH(p3) {
  32.   return   DoA(this.r3obj, 132002, p3, R3TID_OBJECT, 0);
  33. }
  34.  
  35. // Description: Detach the link object from the given source object.
  36. // Returns: Boolean, true if succeeded.
  37. // p3: Object, source object    
  38.  
  39. R3INSTANCEM_DETACH = 132003;
  40.  
  41. function mR3INSTANCEM_DETACH(p3) {
  42.   return   DoA(this.r3obj, 132003, p3, R3TID_OBJECT, 0);
  43. }
  44.  
  45.  
  46.  
  47.  
  48. R3INSTANCEA_SourceObject = 132500;
  49. function SetR3INSTANCEA_SourceObject(value) {
  50.   R3Set(this.r3obj, R3INSTANCEA_SourceObject, value, R3TID_OBJECT, 0); 
  51. }
  52.  
  53. function GetR3INSTANCEA_SourceObject() {
  54.   return R3ToJS(R3Get(this.r3obj, R3INSTANCEA_SourceObject, R3TID_OBJECT, 0)); 
  55. }
  56.  
  57. R3INSTANCEA_OrigSourceObject = 132501;
  58. function GetR3INSTANCEA_OrigSourceObject() {
  59.   return R3ToJS(R3Get(this.r3obj, R3INSTANCEA_OrigSourceObject, R3TID_OBJECT, 0)); 
  60. }
  61.  
  62. R3INSTANCEA_NumMovedPoints = 132502;
  63. function SetR3INSTANCEA_NumMovedPoints(value) {
  64.   R3Set(this.r3obj, R3INSTANCEA_NumMovedPoints, value, R3TID_INTEGER, 0); 
  65. }
  66.  
  67. function GetR3INSTANCEA_NumMovedPoints() {
  68.   return R3Get(this.r3obj, R3INSTANCEA_NumMovedPoints, R3TID_INTEGER, 0); 
  69. }
  70.  
  71. R3INSTANCEA_SourceId = 132506;
  72. function SetR3INSTANCEA_SourceId(value) {
  73.   R3Set(this.r3obj, R3INSTANCEA_SourceId, value, R3TID_INTEGER, 0); 
  74. }
  75.  
  76. function GetR3INSTANCEA_SourceId() {
  77.   return R3Get(this.r3obj, R3INSTANCEA_SourceId, R3TID_INTEGER, 0); 
  78. }
  79.  
  80. R3INSTANCEA_NoTargetMatrix = 132507;
  81. function SetR3INSTANCEA_NoTargetMatrix(value) {
  82.   R3Set(this.r3obj, R3INSTANCEA_NoTargetMatrix, value, R3TID_INTEGER, 0); 
  83. }
  84.  
  85. function GetR3INSTANCEA_NoTargetMatrix() {
  86.   return R3Get(this.r3obj, R3INSTANCEA_NoTargetMatrix, R3TID_INTEGER, 0); 
  87. }
  88.  
  89.  
  90.  
  91. function r3Instance () { 
  92.    this.base = r3God;
  93.    if(arguments.length) {
  94.       this.base(R3CLID_INSTANCE, arguments);
  95.    }
  96.    // Methods
  97.    this.SOURCEISOFKIND=mR3INSTANCEM_SOURCEISOFKIND;
  98.    this.ATTACH=mR3INSTANCEM_ATTACH;
  99.    this.DETACH=mR3INSTANCEM_DETACH;
  100.  
  101.    // Attributes
  102.    this.GetSourceObject=GetR3INSTANCEA_SourceObject;
  103.    this.SetSourceObject=SetR3INSTANCEA_SourceObject;
  104.    this.GetOrigSourceObject=GetR3INSTANCEA_OrigSourceObject;
  105.    this.GetNumMovedPoints=GetR3INSTANCEA_NumMovedPoints;
  106.    this.SetNumMovedPoints=SetR3INSTANCEA_NumMovedPoints;
  107.    this.GetSourceId=GetR3INSTANCEA_SourceId;
  108.    this.SetSourceId=SetR3INSTANCEA_SourceId;
  109.    this.GetNoTargetMatrix=GetR3INSTANCEA_NoTargetMatrix;
  110.    this.SetNoTargetMatrix=SetR3INSTANCEA_NoTargetMatrix;
  111. }
  112.  
  113. r3Instance.prototype=new r3Level;
  114. // r3instnc.h_H